#ifndef _ERROR_CODE_
#define _ERROR_CODE_

// following is the define of the error codes.
enum error_code
{
	E_GENERAL_EXCEPTON = 1,
	E_MEMCOPY_OVERFLOW,
	E_MEMREAD_OVERFLOW,
	E_MEMALLOC_FAIL,   
	E_MEMATTACH_FAIL,
	E_MEMALLOC_AGAIN,
	E_SETAP_FAIL,
	E_DATA_INTEGRAL,        
	E_UNDEFINE_RETVAL,            
	E_SPEED_INDEX_FAIL, 
	E_WFILE_INCOMP,
	E_WFILE_ERROR,
	E_RFILE_INCOMP,
	E_RFILE_ERROR,
	E_OPEN_FILE_ERROR,
	E_SEGMAP_OVERFLOW,
	E_CREATE_FILE_FAIL,
	E_INVALID_PARAMETERS,
	E_PARSE_ERROR,
	E_INIT_ERROR,

	E_SOCKET_EXCEPTION = 100,
	E_CONNECT_FAILED,
	E_CONNECT_CLOSED,
	E_RECV_FAIL,
	E_SEND_FAIL,

	E_INVALID_DATA_FORMAT = 200,
	E_COM_EXCEPTION = 300,


};

#endif

